import axios from '../http/axios'

export const getList = params => {
  return axios.get(`/financing/bill?page=${params.page}&size=${params.size}&type=${params.type}`)
}

export const postBill = params => axios.post('/financing/bill', params)

export const getDetail = id => {
  return axios.get(`/financing/bill/${id}`)
}

export const postBillAccept = params => {
  return axios.post('/financing/bill/accept', params)
}
